/**
 * 
 */
package facility;

import graph.GraphNode;

import com.vividsolutions.jts.geom.Coordinate;

/**
 * @author xiaohui
 * 
 */
public class Facility extends GraphNode {

	private long edgeId; // id of the edge this facility is located
	private double offset; // offset from the begining of the edge

	public Facility(long id, double x, double y) {
		super(id, x, y);
	}

	public Facility(long id, double x, double y, long edgeId, double offset) {
		super(id, x, y);
		this.edgeId = edgeId;
		this.offset = offset;
	}

	public long getEdgeId() {
		return edgeId;
	}

	public void setEdgeId(long edgeId) {
		this.edgeId = edgeId;
	}

	public double getOffset() {
		return offset;
	}

	public void setOffset(double offset) {
		this.offset = offset;
	}
	
	

}
